﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using SharedGenomics.Core;
using SharedGenomics.Domain;

namespace SharedGenomics.Workbench.PresentationModel
{
    public static class ExtensionMethods
    {
        public static ValueDisplayItem<string> ToValueDisplayItem(this FileSchemaColumn column)
        {
            column.ThrowIfNull("column");
            return new ValueDisplayItem<string>(column.Name, column.Label ?? column.Name);
        }
    }
}
